<?php

// 引入 Router 类
require_once 'Framework/router.php'; // 请确保这里的路径是正确的
use Framework\Router;
// 实例化 Router 类
$router = new Router();

// 定义路由
$router->addGet('/', 'HomeController@index');
// $router->addGet('/listings', 'controllers/listings/index.php');
// $router->addGet('/listings/create', 'controllers/listings/create.php');
// $router->addGet('/listing', 'controllers/listings/show.php');

$router->addGet('/listings','ListingController@index');
$router->addGet('/listings/create','ListingController@create');
$router->addGet('/listing','ListingController@show');
